import { createApp } from 'vue'
import App from './App.vue';
import router from './router';
import store from './store';
import installElementPlus from './plugins/element';
import customComponent from './components/common';
import validateComponent from './components/validate';
import codemirror from 'vue-codemirror';

import * as $enum from '@/utils/enum';
import * as $perm from './utils/perm';
import * as $dateFormat from './utils/dateFormat';

import './assets/css/common.css'
import './assets/css/icon.css'

const app = createApp(App)
installElementPlus(app)
customComponent(app)
validateComponent()

app.config.globalProperties.$enum = $enum
app.config.globalProperties.$perm = $perm
app.config.globalProperties.$dateFormat = $dateFormat

app
    .use(store)
    .use(router)
    .use(codemirror)
    .mount('#app')
